class_name GlobalConstants
extends  RefCounted


## 球员预制体
const PLAYER_PREFAB := preload("res://scenes/characters/player.tscn")


const CPU_TEXTURE := preload("res://assets/art/props/cpu.png")
const P1_TEXTURE := preload("res://assets/art/props/1p.png")
const P2_TEXTURE := preload("res://assets/art/props/2p.png")


const SQUADS_JSON_FILE := "res://assets/json/squads.json"


## 微小的正浮点数，用于比较接近零
const TINY: float = 0.0001
## 微小的负浮点数
const TINY_NEGATIVE: float = -TINY


## 球员的地面摩擦力
const PLAYER_GROUND_FRICTION: float = 200.0
## 球员的重力
const PLAYER_GRAVITY: float = 10.0

## 球受到的重力
const BALL_GRAVITY: float = 10.0


## 分组：球
const GROUP_BALL: StringName = "ball"
## 分组：球门
const GROUP_GOAL: StringName = "goal"
